home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / file-tra / wu-ftpd- < prev    next >
Encoding:
Text File  |  1996-11-17  |  10.6 KB  |  271 lines

  1. diff -u --recursive src/edit src2/edit
  2. --- src/edit    Wed Aug 30 07:14:02 1995
  3. +++ src2/edit    Thu Jul 11 08:32:26 1996
  4. @@ -1 +1 @@
  5. -3
  6. +12
  7. diff -u --recursive src/ftpcmd.y src2/ftpcmd.y
  8. --- src/ftpcmd.y    Wed Aug 30 07:14:02 1995
  9. +++ src2/ftpcmd.y    Thu Jul 11 08:29:45 1996
  10. @@ -108,6 +108,97 @@
  11.  
  12.  static void toolong();
  13.  
  14. +#define CMD 0   /* beginning of command */
  15. +#define ARGS    1   /* expect miscellaneous arguments */
  16. +#define STR1    2   /* expect SP followed by STRING */
  17. +#define STR2    3   /* expect STRING */
  18. +#define OSTR    4   /* optional SP then STRING */
  19. +#define ZSTR1   5   /* SP then optional STRING */
  20. +#define ZSTR2   6   /* optional STRING after SP */
  21. +#define SITECMD 7   /* SITE command */
  22. +#define NSTR    8   /* Number followed by a string */
  23. +#define STR3    9   /* expect STRING followed by optional SP then STRING */
  24. +
  25. +struct tab {
  26. +    char    *name;
  27. +    short   token;
  28. +    short   state;
  29. +    short   implemented;    /* 1 if command is implemented */
  30. +    char    *help;
  31. +};
  32. +
  33. +struct tab cmdtab[] = {     /* In order defined in RFC 765 */
  34. +    { "USER", USER, STR1, 1,    "<sp> username" },
  35. +    { "PASS", PASS, ZSTR1, 1,   "<sp> password" },
  36. +    { "ACCT", ACCT, STR1, 0,    "(specify account)" },
  37. +    { "SMNT", SMNT, ARGS, 0,    "(structure mount)" },
  38. +    { "REIN", REIN, ARGS, 0,    "(reinitialize server state)" },
  39. +    { "QUIT", QUIT, ARGS, 1,    "(terminate service)", },
  40. +    { "PORT", PORT, ARGS, 1,    "<sp> b0, b1, b2, b3, b4" },
  41. +    { "PASV", PASV, ARGS, 1,    "(set server in passive mode)" },
  42. +    { "TYPE", TYPE, ARGS, 1,    "<sp> [ A | E | I | L ]" },
  43. +    { "STRU", STRU, ARGS, 1,    "(specify file structure)" },
  44. +    { "MODE", MODE, ARGS, 1,    "(specify transfer mode)" },
  45. +    { "RETR", RETR, STR1, 1,    "<sp> file-name" },
  46. +    { "STOR", STOR, STR1, 1,    "<sp> file-name" },
  47. +    { "APPE", APPE, STR1, 1,    "<sp> file-name" },
  48. +    { "MLFL", MLFL, OSTR, 0,    "(mail file)" },
  49. +    { "MAIL", MAIL, OSTR, 0,    "(mail to user)" },
  50. +    { "MSND", MSND, OSTR, 0,    "(mail send to terminal)" },
  51. +    { "MSOM", MSOM, OSTR, 0,    "(mail send to terminal or mailbox)" },
  52. +    { "MSAM", MSAM, OSTR, 0,    "(mail send to terminal and mailbox)" },
  53. +    { "MRSQ", MRSQ, OSTR, 0,    "(mail recipient scheme question)" },
  54. +    { "MRCP", MRCP, STR1, 0,    "(mail recipient)" },
  55. +    { "ALLO", ALLO, ARGS, 1,    "allocate storage (vacuously)" },
  56. +    { "REST", REST, ARGS, 1,    "(restart command)" },
  57. +    { "RNFR", RNFR, STR1, 1,    "<sp> file-name" },
  58. +    { "RNTO", RNTO, STR1, 1,    "<sp> file-name" },
  59. +    { "ABOR", ABOR, ARGS, 1,    "(abort operation)" },
  60. +    { "DELE", DELE, STR1, 1,    "<sp> file-name" },
  61. +    { "CWD",  CWD,  OSTR, 1,    "[ <sp> directory-name ]" },
  62. +    { "XCWD", CWD,  OSTR, 1,    "[ <sp> directory-name ]" },
  63. +    { "LIST", LIST, OSTR, 1,    "[ <sp> path-name ]" },
  64. +    { "NLST", NLST, OSTR, 1,    "[ <sp> path-name ]" },
  65. +    { "SITE", SITE, SITECMD, 1, "site-cmd [ <sp> arguments ]" },
  66. +    { "SYST", SYST, ARGS, 1,    "(get type of operating system)" },
  67. +    { "STAT", STAT, OSTR, 1,    "[ <sp> path-name ]" },
  68. +    { "HELP", HELP, OSTR, 1,    "[ <sp> <string> ]" },
  69. +    { "NOOP", NOOP, ARGS, 1,    "" },
  70. +    { "MKD",  MKD,  STR1, 1,    "<sp> path-name" },
  71. +    { "XMKD", MKD,  STR1, 1,    "<sp> path-name" },
  72. +    { "RMD",  RMD,  STR1, 1,    "<sp> path-name" },
  73. +    { "XRMD", RMD,  STR1, 1,    "<sp> path-name" },
  74. +    { "PWD",  PWD,  ARGS, 1,    "(return current directory)" },
  75. +    { "XPWD", PWD,  ARGS, 1,    "(return current directory)" },
  76. +    { "CDUP", CDUP, ARGS, 1,    "(change to parent directory)" },
  77. +    { "XCUP", CDUP, ARGS, 1,    "(change to parent directory)" },
  78. +    { "STOU", STOU, STR1, 1,    "<sp> file-name" },
  79. +    { "SIZE", SIZE, OSTR, 1,    "<sp> path-name" },
  80. +    { "MDTM", MDTM, OSTR, 1,    "<sp> path-name" },
  81. +    { NULL,   0,    0,    0,    0 }
  82. +};
  83. +
  84. +struct tab sitetab[] = {
  85. +    { "UMASK", UMASK, ARGS, 1,  "[ <sp> umask ]" },
  86. +    { "IDLE",  IDLE,  ARGS, 1,  "[ <sp> maximum-idle-time ]" },
  87. +    { "CHMOD", CHMOD, NSTR, 1,  "<sp> mode <sp> file-name" },
  88. +    { "HELP",  HELP,  OSTR, 1,  "[ <sp> <string> ]" },
  89. +    { "GROUP", GROUP, STR1, 1,  "<sp> access-group" },
  90. +    { "GPASS", GPASS, STR1, 1,  "<sp> access-password" },
  91. +    { "NEWER", NEWER, STR3, 1,  "<sp> YYYYMMDDHHMMSS [ <sp> path-name ]" },
  92. +    { "MINFO", MINFO, STR3, 1,  "<sp> YYYYMMDDHHMMSS [ <sp> path-name ]" },
  93. +    { "INDEX", INDEX, STR1, 1,  "<sp> pattern" },
  94. +    { "EXEC",  EXEC,  STR1, 1,  "<sp> command [ <sp> arguments ]" },
  95. +    { "ALIAS", ALIAS, OSTR, 1,  "[ <sp> alias ] " },
  96. +    { "CDPATH", CDPATH, OSTR, 1,  "[ <sp> ] " },
  97. +    { "GROUPS", GROUPS, OSTR, 1,  "[ <sp> ] " },
  98. +    { NULL,    0,     0,    0,  0 }
  99. +};
  100. +
  101. +void
  102. +print_groups();
  103. +
  104. +
  105.  %}
  106.  
  107.  %token
  108. @@ -862,93 +953,6 @@
  109.  %%
  110.  
  111.  extern jmp_buf errcatch;
  112. -
  113. -#define CMD 0   /* beginning of command */
  114. -#define ARGS    1   /* expect miscellaneous arguments */
  115. -#define STR1    2   /* expect SP followed by STRING */
  116. -#define STR2    3   /* expect STRING */
  117. -#define OSTR    4   /* optional SP then STRING */
  118. -#define ZSTR1   5   /* SP then optional STRING */
  119. -#define ZSTR2   6   /* optional STRING after SP */
  120. -#define SITECMD 7   /* SITE command */
  121. -#define NSTR    8   /* Number followed by a string */
  122. -#define STR3    9   /* expect STRING followed by optional SP then STRING */
  123. -
  124. -struct tab {
  125. -    char    *name;
  126. -    short   token;
  127. -    short   state;
  128. -    short   implemented;    /* 1 if command is implemented */
  129. -    char    *help;
  130. -};
  131. -
  132. -struct tab cmdtab[] = {     /* In order defined in RFC 765 */
  133. -    { "USER", USER, STR1, 1,    "<sp> username" },
  134. -    { "PASS", PASS, ZSTR1, 1,   "<sp> password" },
  135. -    { "ACCT", ACCT, STR1, 0,    "(specify account)" },
  136. -    { "SMNT", SMNT, ARGS, 0,    "(structure mount)" },
  137. -    { "REIN", REIN, ARGS, 0,    "(reinitialize server state)" },
  138. -    { "QUIT", QUIT, ARGS, 1,    "(terminate service)", },
  139. -    { "PORT", PORT, ARGS, 1,    "<sp> b0, b1, b2, b3, b4" },
  140. -    { "PASV", PASV, ARGS, 1,    "(set server in passive mode)" },
  141. -    { "TYPE", TYPE, ARGS, 1,    "<sp> [ A | E | I | L ]" },
  142. -    { "STRU", STRU, ARGS, 1,    "(specify file structure)" },
  143. -    { "MODE", MODE, ARGS, 1,    "(specify transfer mode)" },
  144. -    { "RETR", RETR, STR1, 1,    "<sp> file-name" },
  145. -    { "STOR", STOR, STR1, 1,    "<sp> file-name" },
  146. -    { "APPE", APPE, STR1, 1,    "<sp> file-name" },
  147. -    { "MLFL", MLFL, OSTR, 0,    "(mail file)" },
  148. -    { "MAIL", MAIL, OSTR, 0,    "(mail to user)" },
  149. -    { "MSND", MSND, OSTR, 0,    "(mail send to terminal)" },
  150. -    { "MSOM", MSOM, OSTR, 0,    "(mail send to terminal or mailbox)" },
  151. -    { "MSAM", MSAM, OSTR, 0,    "(mail send to terminal and mailbox)" },
  152. -    { "MRSQ", MRSQ, OSTR, 0,    "(mail recipient scheme question)" },
  153. -    { "MRCP", MRCP, STR1, 0,    "(mail recipient)" },
  154. -    { "ALLO", ALLO, ARGS, 1,    "allocate storage (vacuously)" },
  155. -    { "REST", REST, ARGS, 1,    "(restart command)" },
  156. -    { "RNFR", RNFR, STR1, 1,    "<sp> file-name" },
  157. -    { "RNTO", RNTO, STR1, 1,    "<sp> file-name" },
  158. -    { "ABOR", ABOR, ARGS, 1,    "(abort operation)" },
  159. -    { "DELE", DELE, STR1, 1,    "<sp> file-name" },
  160. -    { "CWD",  CWD,  OSTR, 1,    "[ <sp> directory-name ]" },
  161. -    { "XCWD", CWD,  OSTR, 1,    "[ <sp> directory-name ]" },
  162. -    { "LIST", LIST, OSTR, 1,    "[ <sp> path-name ]" },
  163. -    { "NLST", NLST, OSTR, 1,    "[ <sp> path-name ]" },
  164. -    { "SITE", SITE, SITECMD, 1, "site-cmd [ <sp> arguments ]" },
  165. -    { "SYST", SYST, ARGS, 1,    "(get type of operating system)" },
  166. -    { "STAT", STAT, OSTR, 1,    "[ <sp> path-name ]" },
  167. -    { "HELP", HELP, OSTR, 1,    "[ <sp> <string> ]" },
  168. -    { "NOOP", NOOP, ARGS, 1,    "" },
  169. -    { "MKD",  MKD,  STR1, 1,    "<sp> path-name" },
  170. -    { "XMKD", MKD,  STR1, 1,    "<sp> path-name" },
  171. -    { "RMD",  RMD,  STR1, 1,    "<sp> path-name" },
  172. -    { "XRMD", RMD,  STR1, 1,    "<sp> path-name" },
  173. -    { "PWD",  PWD,  ARGS, 1,    "(return current directory)" },
  174. -    { "XPWD", PWD,  ARGS, 1,    "(return current directory)" },
  175. -    { "CDUP", CDUP, ARGS, 1,    "(change to parent directory)" },
  176. -    { "XCUP", CDUP, ARGS, 1,    "(change to parent directory)" },
  177. -    { "STOU", STOU, STR1, 1,    "<sp> file-name" },
  178. -    { "SIZE", SIZE, OSTR, 1,    "<sp> path-name" },
  179. -    { "MDTM", MDTM, OSTR, 1,    "<sp> path-name" },
  180. -    { NULL,   0,    0,    0,    0 }
  181. -};
  182. -
  183. -struct tab sitetab[] = {
  184. -    { "UMASK", UMASK, ARGS, 1,  "[ <sp> umask ]" },
  185. -    { "IDLE",  IDLE,  ARGS, 1,  "[ <sp> maximum-idle-time ]" },
  186. -    { "CHMOD", CHMOD, NSTR, 1,  "<sp> mode <sp> file-name" },
  187. -    { "HELP",  HELP,  OSTR, 1,  "[ <sp> <string> ]" },
  188. -    { "GROUP", GROUP, STR1, 1,  "<sp> access-group" },
  189. -    { "GPASS", GPASS, STR1, 1,  "<sp> access-password" },
  190. -    { "NEWER", NEWER, STR3, 1,  "<sp> YYYYMMDDHHMMSS [ <sp> path-name ]" },
  191. -    { "MINFO", MINFO, STR3, 1,  "<sp> YYYYMMDDHHMMSS [ <sp> path-name ]" },
  192. -    { "INDEX", INDEX, STR1, 1,  "<sp> pattern" },
  193. -    { "EXEC",  EXEC,  STR1, 1,  "<sp> command [ <sp> arguments ]" },
  194. -    { "ALIAS", ALIAS, OSTR, 1,  "[ <sp> alias ] " },
  195. -    { "CDPATH", CDPATH, OSTR, 1,  "[ <sp> ] " },
  196. -    { "GROUPS", GROUPS, OSTR, 1,  "[ <sp> ] " },
  197. -    { NULL,    0,     0,    0,  0 }
  198. -};
  199.  
  200.  struct tab *
  201.  lookup(p, cmd)
  202. diff -u --recursive src/ftpd.c src2/ftpd.c
  203. --- src/ftpd.c    Wed Aug 30 07:14:02 1995
  204. +++ src2/ftpd.c    Thu Jul 11 08:29:46 1996
  205. @@ -95,9 +95,9 @@
  206.  #include <sys/systeminfo.h>
  207.  #endif
  208.  
  209. -#ifdef SHADOW_PASSWORD
  210. +
  211.  #include <shadow.h>
  212. -#endif
  213. +
  214.  
  215.  #ifdef KERBEROS
  216.  #include <sys/types.h>
  217. @@ -1002,13 +1002,13 @@
  218.      if (!anonymous) {           /* "ftp" is only account allowed no password */
  219.          if (*passwd == '-')
  220.              passwd++;
  221. -#ifdef SHADOW_PASSWORD
  222. +
  223.          if (pw) {
  224.             struct spwd *spw = getspnam( pw->pw_name );
  225.             if( !spw ) { pw->pw_passwd = ""; }
  226.             else { pw->pw_passwd = spw->sp_pwdp; }
  227.          }
  228. -#endif
  229. +
  230.  
  231.          *guestpw = (char) NULL;
  232.          if (pw == NULL)
  233. diff -u --recursive src/glob.c src2/glob.c
  234. --- src/glob.c    Wed Aug 30 07:14:02 1995
  235. +++ src2/glob.c    Thu Jul 11 08:29:53 1996
  236. @@ -44,12 +44,14 @@
  237.  #include <sys/param.h>
  238.  #include <sys/stat.h>
  239.  
  240. -#ifdef HAVE_DIRENT
  241. +/*#ifdef HAVE_DIRENT*/
  242.  #include <dirent.h>
  243. -#else
  244. +/*#else
  245.  #include <sys/dir.h>
  246.  #endif
  247. +*/
  248.  
  249. +#include <sys/stat.h>
  250.  #include <pwd.h>
  251.  #include <errno.h>
  252.  #include <stdio.h>
  253. @@ -237,8 +239,8 @@
  254.              return;
  255.          goto patherr2;
  256.      }
  257. -    if (fstat(dirp->dd_fd, &stb) < 0)
  258. -        goto patherr1;
  259. +/*    if (fstat(dirp->dd_fd, &stb) < 0)
  260. +        goto patherr1;*/
  261.      if (!isdir(stb)) {
  262.          errno = ENOTDIR;
  263.          goto patherr1;
  264. Only in src/makefiles: Makefile.lnx.orig
  265. diff -u --recursive src/vers.c src2/vers.c
  266. --- src/vers.c    Wed Aug 30 07:14:02 1995
  267. +++ src2/vers.c    Thu Jul 11 08:32:27 1996
  268. @@ -1 +1 @@
  269. -char version[] = "Version wu-2.4(3) Sat Jun 3 13:32:14 EDT 1995";
  270. +char version[] = "Version wu-2.4(12) Thu Jul 11 08:32:26 PDT 1996";
  271.